{include file='public:header-css'/}
<body>
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <!--左侧导航-->
    {include file='public:left-menu'/}
    <!--End 左侧导航-->

    <!--头部信息-->
    {include file='public:nav-header' title="系统后台" subTitle="首页"/}
    <!--End 头部信息-->

    <!--页面主要内容-->
    <main class="lyear-layout-content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/index',['order_status'=>1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">待发货商城订单</p>
                    <p class="h3 text-white m-b-0">{$count.send_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">今日商城订单</p>
                    <p class="h3 text-white m-b-0">{$count.new_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">商城订单总数</p>
                    <p class="h3 text-white m-b-0">{$count.order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/foster_index',['order_status'=>1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">认养中订单</p>
                    <p class="h3 text-white m-b-0">{$count.ry_send_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/foster_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">认养订单总数</p>
                    <p class="h3 text-white m-b-0">{$count.ry_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/convert_index',['order_status'=>1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">待发货/取货兑换订单</p>
                    <p class="h3 text-white m-b-0">{$count.dh_send_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/convert_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">今日兑换订单</p>
                    <p class="h3 text-white m-b-0">{$count.dh_new_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/convert_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">兑换订单总数</p>
                    <p class="h3 text-white m-b-0">{$count.dh_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/jifen_index',['order_status'=>1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">待发货积分订单</p>
                    <p class="h3 text-white m-b-0">{$count.jf_send_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/jifen_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">今日积分订单</p>
                    <p class="h3 text-white m-b-0">{$count.jf_new_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/jifen_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">积分订单总数</p>
                    <p class="h3 text-white m-b-0">{$count.jf_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/stock_index',['order_status'=>1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">待发货进货订单</p>
                    <p class="h3 text-white m-b-0">{$count.jh_send_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/stock_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">今日进货订单</p>
                    <p class="h3 text-white m-b-0">{$count.jh_new_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-success">
              <a href="{:url('Order/stock_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">进货订单总数</p>
                    <p class="h3 text-white m-b-0">{$count.jh_order}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-buffer fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-brown">
              <a href="{:url('Store/store_list',['status'=>-1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">待审核商家</p>
                    <p class="h3 text-white m-b-0">{$count.check_store}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-store fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-brown">
              <a href="{:url('Store/store_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">商家总数</p>
                    <p class="h3 text-white m-b-0">{$count.store}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-store fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-brown">
              <a href="{:url('Store/pick_list',['status'=>-1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">待审核自提点</p>
                    <p class="h3 text-white m-b-0">{$count.check_pick}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-store fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-brown">
              <a href="{:url('Store/pick_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">自提点总数</p>
                    <p class="h3 text-white m-b-0">{$count.pick}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-store fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-warning">
              <a href="{:url('User/withdrawals',['status'=>-1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">待处理提现</p>
                    <p class="h3 text-white m-b-0">{$count.check_with}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-currency-cny fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-warning">
              <a href="{:url('User/withdrawals',['status'=>1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">提现成功总数</p>
                    <p class="h3 text-white m-b-0">{$count.with}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-currency-cny fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-warning">
              <a href="{:url('User/withdrawals',['status'=>1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">提现成功总额</p>
                    <p class="h3 text-white m-b-0">{$count.with_sum}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-currency-cny fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/goods_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">商品数量</p>
                    <p class="h3 text-white m-b-0">{$count.goods}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/category_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">商品分类数</p>
                    <p class="h3 text-white m-b-0">{$count.goods_category}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/goods_type_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">商品模型数</p>
                    <p class="h3 text-white m-b-0">{$count.goods_type}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/convert_goods_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">兑换商品数</p>
                    <p class="h3 text-white m-b-0">{$count.convert_goods}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/jifen_goods_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">积分商品数</p>
                    <p class="h3 text-white m-b-0">{$count.jifen_goods}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/stock_goods_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">进货商品数</p>
                    <p class="h3 text-white m-b-0">{$count.stock_goods}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/foster_goods_category')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">认养分类数</p>
                    <p class="h3 text-white m-b-0">{$count.foster_goods_category}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/foster_goods_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">认养商品数</p>
                    <p class="h3 text-white m-b-0">{$count.foster_goods}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/classify_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">监控分类数</p>
                    <p class="h3 text-white m-b-0">{$count.monitor_class}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-dark">
              <a href="{:url('Goods/monitor_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">监控数量</p>
                    <p class="h3 text-white m-b-0">{$count.monitors}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-shopping fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-cyan">
              <a href="{:url('Deal/user_wallet_deal_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">会员交易数</p>
                    <p class="h3 text-white m-b-0">{$count.user_wallet_deal}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-wallet fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-cyan">
              <a href="{:url('Deal/user_wallet_deal_list',['status'=>-1])}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">出售中总数</p>
                    <p class="h3 text-white m-b-0">{$count.jyz_user_wallet_deal}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-wallet fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-info">
              <a href="{:url('Content/ad_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">广告数量</p>
                    <p class="h3 text-white m-b-0">{$count.ad}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-image fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-pink">
              <a href="{:url('User/level_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">等级数量</p>
                    <p class="h3 text-white m-b-0">{$count.user_level}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-crown fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-pink">
              <a href="{:url('User/wallet_index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">钱包数量</p>
                    <p class="h3 text-white m-b-0">{$count.wallet}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-crown fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-pink">
              <a href="{:url('User/given')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">转赠数量</p>
                    <p class="h3 text-white m-b-0">{$count.given}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-crown fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-pink">
              <a href="{:url('Deal/user_wallet_given_list')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">转让数量</p>
                    <p class="h3 text-white m-b-0">{$count.user_wallet_given}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-crown fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-danger">
              <a href="{:url('User/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">用户总数</p>
                    <p class="h3 text-white m-b-0">{$count.users}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-danger">
              <a href="{:url('User/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">封禁用户总数</p>
                    <p class="h3 text-white m-b-0">{$count.is_lock}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-danger">
              <a href="{:url('User/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">今日访问用户</p>
                    <p class="h3 text-white m-b-0">{$count.today_login}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-danger">
              <a href="{:url('User/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">今日注册用户</p>
                    <p class="h3 text-white m-b-0">{$count.new_users}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-purple">
              <a href="{:url('User/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">粮票总额</p>
                    <p class="h3 text-white m-b-0">{$count.user_money}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-database fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-purple">
              <a href="{:url('User/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">积分总额</p>
                    <p class="h3 text-white m-b-0">{$count.jifen}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-database fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-purple">
              <a href="{:url('User/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">牧场补贴总额</p>
                    <p class="h3 text-white m-b-0">{$count.mcbt}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-database fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
          <div class="col-sm-6 col-lg-3">
            <div class="card bg-purple">
              <a href="{:url('User/index')}" class="link">
                <div class="card-body clearfix">
                  <div class="pull-right">
                    <p class="h6 text-white m-t-0">储备金总额</p>
                    <p class="h3 text-white m-b-0">{$count.reserve_money}</p>
                  </div>
                  <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-database fa-1-5x"></i></span> </div>
                </div>
              </a>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-lg-12">
            <div class="card">
              <div class="card-header">
                <h4>本月用户</h4>
              </div>
              <div class="card-body">
                <div id="main" class="js-chartjs-bars"></div>
              </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-lg-12">
            <div class="card">
              <div class="card-header">
                <h4>订单概况</h4>
              </div>
              <div class="card-body">
                <div id="order" class="js-chartjs-bars"></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </main>
    <!--End 页面主要内容-->
  </div>
  <style>
    .link{
      color: #fff;
    }
    .link:hover{
      color: #fff;
    }
    .card{
      border-radius: 5px;
      overflow: hidden;
    }
    .js-chartjs-bars{
      width: 100%;
      height: 400px;
    }
  </style>
</div>
<!--图表插件-->
<script type="text/javascript" src="__STATIC__/js/echarts.min.js"></script>
<script type="text/javascript">
  var res = {$result|raw};
  var order_result = {$order_result|raw};
$(document).ready(function(e) {
  var chartDom = document.getElementById('main');
  var order = document.getElementById('order');
  var myChart = echarts.init(chartDom);
  var orderChart = echarts.init(order);

  var option = {
    tooltip: {
      trigger: 'axis',
      axisPointer: {
        type: 'cross',
        crossStyle: {
          color: 'rgba(0,122,255,0.5)'
        }
      }
    },
    xAxis: {
      type: 'category',
      data: res.time || [],
      axisPointer: {
        type: 'shadow',
        shadowStyle:{
          color:"rgba(0,122,255,0.1)"
        }
      },
      axisLine:{
        show:true,
        lineStyle:{
          color:"rgba(0,122,255,0.8)"
        }
      }
    },
    textStyle:{
      color:"#8b95a5"
    },
    grid: {
      left: '3%',
      right: '3%',
      bottom: '3%',
      containLabel: true,
    },
    color:"rgba(0,122,255,0.8)",
    yAxis: {
      type: 'value',
      splitLine:{
        show:true,
        lineStyle:{
          color:"rgba(0,122,255,0.1)"
        }
      },
      axisLine:{
        show:true,
        lineStyle:{
          color:"rgba(0,122,255,0.8)"
        }
      },
    },
    series: [{
      name: '注册用户',
      data: res.data || [],
      barWidth:30,
      type: 'bar'
    }]
  };
  var orderOption={
    tooltip: {
      trigger: 'axis',
      axisPointer: {
        type: 'cross',
        crossStyle: {
          color: 'rgba(0,122,255,0.5)'
        }
      }
    },
    textStyle:{
      color:"#8b95a5"
    },
    grid: {
      left: '1%',
      right: '1%',
      bottom: '3%',
      containLabel: true,
    },
    legend: {
      data: ['订单金额', '客单价', '订单数']
    },
    xAxis: [
      {
        type: 'category',
        data: order_result.time || [],
        axisPointer: {
          type: 'shadow',
          shadowStyle:{
            color:"rgba(0,122,255,0.1)"
          }
        },
        axisLine:{
          show:true,
          lineStyle:{
            color:"rgba(0,122,255,0.8)"
          }
        },
      }
    ],
    yAxis: [
      {
        type: 'value',
        name: '金额',
        splitLine:{
          show:true,
          lineStyle:{
            color:"rgba(0,122,255,0.1)"
          }
        },
        axisLine:{
          show:true,
          lineStyle:{
            color:"rgba(0,122,255,0.8)"
          }
        },
        axisLabel: {
          formatter: '￥ {value}'
        }
      },
      {
        type: 'value',
        name: '客单价',
        splitLine:{
          show:true,
          lineStyle:{
            color:"rgba(0,122,255,0.1)"
          }
        },
        axisLine:{
          show:true,
          lineStyle:{
            color:"rgba(0,122,255,0.8)"
          }
        },
        axisLabel: {
          formatter: '￥ {value}'
        }
      }
    ],
    series: [
      {
        name: '订单金额',
        type: 'bar',
        color:"#15C377",
        data: order_result.amount || []
      },
      {
        name: '客单价',
        type: 'bar',
        color:"#007AFF",
        yAxisIndex: 1,
        data: order_result.sign || []
      },
      {
        name: '订单数',
        type: 'line',
        color:"#F96868",
        data: order_result.order || []
      },
    ]
  };
  option && myChart.setOption(option);
  orderOption && orderChart.setOption(orderOption);
});
</script>
</body>
</html>
